/*
 * @Author: your name
 * @Date: 2021-04-16 13:47:28
 * @LastEditTime: 2021-05-30 12:43:02
 * @LastEditors: Please set LastEditors
 * @Description: 药企资讯
 * @FilePath: /medicine-web/src/store/modules/realinfo.js
 */
import rest from './../rest'
const realinfo = {
  state: {},
  mutations: {},
  actions: {
    async getRealInfoList({ commit }, data) { // 获取材料总结列表
      const res = await rest.get('informations/search', data)
      if (res && res.code === 200) {
        return res.data
      }
      return {}
    },
    // 获取药企资讯统计
    async getRealInfoStatitics() {
      const res = await rest.get('informations/report')
      if (res && res.code == 200) {
        return res.data
      }
      return {}
    }
  },
  getters: {}
}
export default realinfo